<?php

include("include/config.inc.php");
if(isset($_REQUEST['orderId']))
{
  $update = "UPDATE ordermaster 
                SET orderstatus = 'R'
              WHERE orderId = ".$_REQUEST['orderId'];
  $res    = mysql_query($update);
  if(!$res)
  {
  	echo "UPDATE FAIL";
  }
  else
  {
    header("location:closeTables.php");
  }
}
  
?>